/**
 * 
 */
package snooker.scoreboard;

/**
 * @author emzenyi
 *
 */
public class SnookerFileException extends Exception {

	private static final long serialVersionUID = 9019677399312741903L;

	public static final int SNOOKER_FILE_NOT_EXISTS = 1;
	public static final int SNOOKER_CANT_SAVE = 2;
	public static final int SNOOKER_FILE_NOT_READABLE = 3;
	public static final int SNOOKER_FILE_NOT_ACCESSABLE = 4;
	public static final int SNOOKER_FILE_FORMAT_ERROR = 5;
	private int code;
	
	public SnookerFileException(int code) {
		super();
		this.code = code;
	}

	public SnookerFileException(int code, String msg) {
		super(msg);
		this.code = code;
	}
	
	public int getCode() {
		return code;
	}

	@Override
	public String getLocalizedMessage() {
		// TODO Auto-generated method stub
		return super.getLocalizedMessage();
	}

	@Override
	public String getMessage() {
		// TODO Auto-generated method stub
		return super.getMessage();
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}
}
